%table{:border => "0", :cellpadding => "0", :cellspacing => "0", :style => "border-bottom:1px solid #ededed;padding-bottom:5px;padding-top: 20px;", :width => "100%"}
  %tbody
    %tr
      %td
        %table{:border => "0", :cellpadding => "0", :cellspacing => "0", :width => "100%"}
          %tbody
            %tr
              - if listing.author.has_profile_picture?
                %td{:valign => "top", :width => "50"}
                  = link_to((image_tag listing.author.image.url(:thumb), :width => 50, :height => 50, :style => "display:block;margin-right:20px;margin-bottom:10px;margin-top:0;border:0"), person_url(listing.author, @url_params))
              %td{:valign => "top", :style => "margin-bottom: 0;padding-bottom: 0;"}
                %p{:style => "font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-weight: normal; font-size: 14px; margin-top: 0;margin-bottom:0;padding:0;line-height:14px;"}
                  - name_link = link_to(PersonViewUtils.person_display_name_for_type(listing.author, "first_name_only"), person_url(listing.author, @url_params), :style => "font-weight:bold;")
                  = t("emails.community_updates.added_listing",
                      :name_link => name_link,
                          :default => t("emails.community_updates.added_listing",
                              :name_link => name_link)).html_safe
                %h2{:style => "font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-weight: normal; font-size: 22px; margin-bottom: 8px; margin-top: 2px; padding:0;text-justify: none;line-height:26px;"}
                  = link_to listing_url(@url_params.merge({:id => listing.id})), :target => "_blank" do
                    - if @show_listing_shape_label
                      = shape_name(listing) + ":"
                    = listing.title
        - unless listing.listing_images.empty?
          = link_to(image_tag(listing.listing_images.first.image.url(:email), :class => "listing_main_image", :alt => listing.title, :height => "100", :width => "150", :style => "display:block;margin-left:30px;margin-bottom:20px;margin-top:4px;border:0", :align => "right"), listing_url(@url_params.merge({:id => listing.id})))
        - unless listing.description.blank?
          %p{:style => "font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;font-weight:100px; color:#898989;font-style: italic;line-height:22px;margin-top:0;margin-bottom:8px;"}
            = truncate_html(markdown(listing.description), :length => 200, :omission => "...")

